/*
  Card Selector Card
  ------------------------------------------------------------------------------
*/

.card-select--card {
  min-width: 100%;
  min-height: 100%;
  background-color: $g1-raven;
  border-radius: $radius;
  border: $ix-border solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

.card-select--container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  cursor: pointer;
  user-select: none;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }
}

.card-select--image {
  justify-content: center;
  max-width: 50%;
  filter: grayscale(0.8) opacity(30%);
  transition: filter 0.2s ease;
  transform: translateY(-6%);

  img {
    width: 100%;
    height: 100%;
    font-size: $ix-text-base;
  }
}

.card-select--active:hover,
.card-select--active.card-select--checked {
  background-color: $g5-pepper;
  .card-select--image {
    filter: grayscale(0) opacity(100%);
  }
}

.card-select--active.card-select--checked {
  border-color: $c-rainforest;
}

.card-select--disabled {
  opacity: 0.3;
  .card-select--container {
    cursor: not-allowed;
  }
}

.card-select--label {
  text-align: center;
  min-width: 100%;
  display: inline-block;
  position: absolute;
  bottom: 10%;
  font-family: $ix-text-font;
  color: $ix-text-default;
  font-size: $form-md-font;
  font-weight: 600;
}

.card-select--no-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.card-select--checkmark {
  font-size: 20px;
  position: absolute;
  left: 12px;
  top: 12px;
  height: 22px;
  width: 22px;
  color: $c-rainforest;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card-select--checkmark.card-select--checked {
  opacity: 1;
}
